<?php
/**
* 首页控制器
*/
class IndexController extends Controller
{
    
    public function index()
    {
        // 调模型
        $stu = new StuModel();

        $data = $stu->getMan();

        $data = $stu->getTopAge();

        // $user = new Model('class');

        // $data = $user->select();

        // 分配变量
        
        $this->assign('bb',$data);

        $this->assign('user','zhibinm');
        $this->assign('aa','学燕思');
        // 引视图
        $this->display('index');
        // include VIEW_PATH.'/index.html';
    }

    public function show()
    {
        $this->display();
    }

    public function run($value='')
    {

    }
}